Skip to content

Conversation

@rozza
Copy link
Member

@rozza rozza commented Oct 21, 2025

No description provided.

@rozza rozza requested a review from a team as a code owner October 21, 2025 13:44
@rozza rozza requested review from a team, Copilot, katcharov, nhachicha and stIncMale and removed request for a team and katcharov October 21, 2025 13:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the observability/tracing infrastructure by moving classes from com.mongodb.internal.tracing to com.mongodb.internal.observability.micrometer and refactoring related code to improve maintainability and organization.

Key changes:

  • Moved tracing-related classes from internal.tracing to internal.observability.micrometer package
  • Extracted MongoNamespace.COMMAND_COLLECTION_NAME and ADMIN_DB_COMMAND_NAMESPACE constants to a new MongoNamespaceHelper class
  • Refactored MongoDriverInformation from a concrete class to an abstract class with ConcreteMongoDriverInformation as the implementation

Reviewed Changes

Copilot reviewed 47 out of 47 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
driver-core/src/main/com/mongodb/internal/observability/micrometer/* Package relocation of tracing classes from internal.tracing
driver-core/src/main/com/mongodb/observability/micrometer/MicrometerObservabilitySettings.java Moved from observability package and updated import references
driver-core/src/main/com/mongodb/internal/MongoNamespaceHelper.java New helper class for namespace constants previously in MongoNamespace
driver-core/src/main/com/mongodb/MongoNamespace.java Deprecated COMMAND_COLLECTION_NAME constant and removed internal constants
driver-core/src/main/com/mongodb/MongoDriverInformation.java Refactored to abstract class pattern
driver-core/src/main/com/mongodb/internal/connection/ConcreteMongoDriverInformation.java New concrete implementation extracted from MongoDriverInformation
Various test and implementation files Updated imports to reference new package structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

rozza and others added 2 commits October 21, 2025 14:48
…ometerObservabilitySettings.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ometerObservabilitySettings.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@nhachicha nhachicha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM waiting for CI

@rozza rozza merged commit 166bf3f into mongodb:main Oct 21, 2025
54 of 56 checks passed
@rozza rozza deleted the internalNitsAndHouseKeeping branch October 21, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants